package com.aabte.spring.beans;

import lombok.ToString;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * @author Daniel
 */
@ToString
@Component
public class Boss {

    private Car car;

    public Boss() {
    }

    // @Autowired
    public Boss(/* @Autowired */ Car car) {
        this.car = car;
    }

    public Car getCar() {
        return car;
    }

    // @Autowired
    public void setCar(@Autowired Car car) {
        this.car = car;
    }
}
